package com.time.sky.mapper;

import com.time.sky.entity.Bank;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface BankMapper {
    @Select("select * from wuye.bank ")
    List<Bank> queryBank();
    @Insert("insert into wuye.bank (bname,amount) values(#{bname},#{amount})")
    void addBank(Bank bank);
    @Select("select count(*) from bank")
    int getCount1(Bank bank);
    @Update("update bank set  bname=#{bname},amount=#{amount} where id=#{id}")
    Bank updateBank(Bank bank);
}
